tests: Fix testfilechooser test
authorAlexander Mikhaylenko <alexm@gnome.org>
Sun, 10 May 2020 23:47:26 +0000 (04:47 +0500)
committerAlexander Mikhaylenko <alexm@gnome.org>
Sun, 10 May 2020 23:47:26 +0000 (04:47 +0500)
Don't use GtkContainer API on GtkWindow.

tests/testfilechooser.c

index 0a9e19e2bfa1e8912912f52e80be0444c8776185..0558dab5b049b0fb7b7cd3266758ed607df711b3 100644 (file)
@@ -452,7 +452,7 @@ main (int argc, char **argv)
   control_window = gtk_window_new ();
 
   vbbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-  gtk_container_add (GTK_CONTAINER (control_window), vbbox);
+  gtk_window_set_child (GTK_WINDOW (control_window), vbbox);
 
   button = gtk_button_new_with_mnemonic ("_Select all");
   gtk_widget_set_sensitive (button, multiple);